/**
 * 
 */
package com.jy.adscm.spss.bean;

import java.util.Comparator;

/**
 * @author 刘中斐
 *@date 2018年9月13日 下午4:44:10 
 *收入堆积图
 */
public class IncomeStacking implements Comparable<IncomeStacking> {

	private String NAME;
	private String OBJECT;
	private String JHJE;
	private String JHYF;
	private String WHEREWEEK;
	public String getNAME() {
		return NAME;
	}
	public void setNAME(String nAME) {
		NAME = nAME;
	}
	public String getOBJECT() {
		return OBJECT;
	}
	public void setOBJECT(String oBJECT) {
		OBJECT = oBJECT;
	}
	public String getJHJE() {
		return JHJE;
	}
	public void setJHJE(String jHJE) {
		JHJE = jHJE;
	}
	public String getJHYF() {
		return JHYF;
	}
	public void setJHYF(String jHYF) {
		JHYF = jHYF;
	}
	public String getWHEREWEEK() {
		return WHEREWEEK;
	}
	public void setWHEREWEEK(String wHEREWEEK) {
		WHEREWEEK = wHEREWEEK;
	}
	@Override
	public String toString() {
		return "IncomeStacking [NAME=" + NAME + ", OBJECT=" + OBJECT + ", JHJE=" + JHJE + ", JHYF=" + JHYF
				+ ", WHEREWEEK=" + WHEREWEEK + "]";
	}

	public int compareTo(IncomeStacking o1) {
		  String str1=o1.getWHEREWEEK();  
          String str2=this.getWHEREWEEK();  
          if (str1!=null&&str2!=null) {
        	  if (str1.compareToIgnoreCase(str2)>0){    
                  return -1;    
              }  
		}
           
          return 1;    
	}
	
 }
